The WriteableBitmap.
The points of the polygon in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn).
The color for the line.
FillPolygon(WriteableBitmap,Int32[],Int32) Method
Draws a filled polygon. Add the first point also at the end of the array if the line should be closed.
Syntax
[Extension()]
public static void FillPolygon( 
   WriteableBitmap bmp,
   int[] points,
   int color
)

Parameters

bmp
The WriteableBitmap.
points
The points of the polygon in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn).
color
The color for the line.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also